package zhieasy.cn.service.forum;

import com.baomidou.mybatisplus.extension.service.IService;
import zhieasy.cn.common.vo.ResultVO;
import zhieasy.cn.model.forum.ForumInfo;

/**
 * @author DaHang
 * @date 2020/8/29 16:36
 */
public interface ForumInfoService extends IService<ForumInfo> {

    /**
     * 分页获取所有的forums
     */
    public ResultVO getAllForums(int pageIndex, int pageSize, String openId);

    public ResultVO addLike(int id);

    public ResultVO subtractLikeOfForum(int forumId);

    public ResultVO getForumDetail(int forumId);

    public ResultVO forwardForum(int forumId);
}
